#ifndef __FLASH_H__
#define __FLASH_H__
#include "sys.h"
#include "osel_arch.h"

#define FLASH_FLAG_ALL_ERRORS (FLASH_FLAG_BSY | FLASH_FLAG_EOP | FLASH_FLAG_PGAERR | FLASH_FLAG_WRPERR)

extern BOOL flash_read_byte(uint32_t addr, uint8_t *buf, uint32_t size);
extern BOOL flash_write_no_buffer(uint32_t addr, uint32_t *buf, uint32_t size);

#endif
